<?php


$config = require basePath('config/db.php');

use Framework\Database;

$db = new Database($config);

$listings = $db->query('SELECT * FROM listing LIMIT 6')->fetchAll();

// inspect($listings);

loadView('home',[
    'listings'=>$listings
]);






loadView('home');

?>